/*
package cn.elane.elastic.core.trace.controller;

import cn.elane.elastic.core.service.biz.ServiceBiz;
import cn.elane.elastic.global.model.NameBean;
import cn.elane.elastic.global.render.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(value = "Trace", tags = {"接口."})
@RequestMapping("/trace/")
@RestController
public class Trace {

	@Resource
	private ServiceBiz biz;

	@ApiOperation(value = "环境列表", notes = "环境列表.")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "start", value = "开始时间.", paramType = "query", dataType = "String", required = true),
			@ApiImplicitParam(name = "end", value = "结束时间.", paramType = "query", dataType = "String", required = true),
	})
	@GetMapping("service/getEnvironment")
	public R getEnvironment(String start, String end) {
		return biz.getEnv(start, end);
	}

	@ApiOperation(value = "服务-主机名/探针条件", notes = "服务-主机名/探针条件.")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "start", value = "开始时间.", paramType = "query", dataType = "String", required = true),
			@ApiImplicitParam(name = "end", value = "结束时间.", paramType = "query", dataType = "String", required = true),
			@ApiImplicitParam(name = "environment", value = "环境.", paramType = "query", dataType = "String", required = false),
	})
	@GetMapping("service/getParams")
	public R getParams(String start, String end, String environment) {
		return biz.getParams(start, end, environment);
	}

	@ApiOperation(value = "服务列表", notes = "服务列表.")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "param", value = "JSON对象.", paramType = "body", dataType = "Map", required = true),
			@ApiImplicitParam(name = "param.start", value = "示例参数: 开始时间.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.end", value = "示例参数: 结束时间.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.environment", value = "示例参数: 环境.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.host", value = "示例参数: 主机.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.agentName", value = "示例参数: 探针.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.serviceName", value = "示例参数: 应用名称/服务名称.", paramType = "query", dataType = "String", required = false),
	})
	@PostMapping("service/list")
	public R list(@RequestBody NameBean param) {
		return biz.list(param);
	}

	@ApiOperation(value = "接口-主机名/探针条件", notes = "接口-主机名/探针条件.")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "start", value = "开始时间.", paramType = "query", dataType = "String", required = true),
			@ApiImplicitParam(name = "end", value = "结束时间.", paramType = "query", dataType = "String", required = true),
			@ApiImplicitParam(name = "environment", value = "环境.", paramType = "query", dataType = "String", required = false),
	})
	@GetMapping("trace/getParams")
	public R getTraceParams(String start, String end, String environment) {
		return biz.getTraceParams(start, end, environment);
	}

	@ApiOperation(value = "接口列表", notes = "接口列表.")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "param", value = "JSON对象.", paramType = "body", dataType = "Map", required = true),
			@ApiImplicitParam(name = "param.start", value = "示例参数: 开始时间.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.end", value = "示例参数: 结束时间.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.environment", value = "示例参数: 环境.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.host", value = "示例参数: 主机.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.result", value = "示例参数: 交易结果.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.serviceName", value = "示例参数: 应用名称/服务名称.", paramType = "query", dataType = "String", required = false),
	})
	@PostMapping("trace/list")
	public R traceList(@RequestBody NameBean param) {
		return biz.traceList(param);
	}

	@ApiOperation(value = "接口详情", notes = "接口详情.")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "param", value = "JSON对象.", paramType = "body", dataType = "Map", required = true),
			@ApiImplicitParam(name = "param.start", value = "示例参数: 开始时间.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.end", value = "示例参数: 结束时间.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.environment", value = "示例参数: 环境.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.host", value = "示例参数: 主机.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.result", value = "示例参数: 交易结果.", paramType = "query", dataType = "String", required = false),
			@ApiImplicitParam(name = "param.serviceName", value = "示例参数: 应用名称/服务名称.", paramType = "query", dataType = "String", required = false),
	})
	@PostMapping("trace/listById")
	public R traceListById(@RequestBody NameBean param) {
		return biz.traceListById(param);
	}
}
*/
